package com.bank6677.sync.csm.domain.old;

import java.util.Date;

public class PublicNotice {
	
    private Long publicId;
    private Integer issueId;
    private String issueName;
    private Date issueTime;
    private Integer issueObject;
    private String issueStatus;
    private String issueRange;
    private String publicContent;
    
    public static final String NOT_READ = "1";
    public static final String ALREADY_READ = "2";
    
    public Long getPublicId() {
        return publicId;
    }
    public void setPublicId(Long publicId) {
        this.publicId = publicId;
    }

    public Integer getIssueId() {
        return issueId;
    }

    public void setIssueId(Integer issueId) {
        this.issueId = issueId;
    }

    public String getIssueName() {
        return issueName;
    }

    public void setIssueName(String issueName) {
        this.issueName = issueName == null ? null : issueName.trim();
    }

    public Date getIssueTime() {
        return issueTime;
    }

    public void setIssueTime(Date issueTime) {
        this.issueTime = issueTime;
    }

    public Integer getIssueObject() {
        return issueObject;
    }

    public void setIssueObject(Integer issueObject) {
        this.issueObject = issueObject;
    }

    public String getIssueStatus() {
        return issueStatus;
    }

    public void setIssueStatus(String issueStatus) {
        this.issueStatus = issueStatus == null ? null : issueStatus.trim();
    }

    public String getIssueRange() {
        return issueRange;
    }

    public void setIssueRange(String issueRange) {
        this.issueRange = issueRange == null ? null : issueRange.trim();
    }

    public String getPublicContent() {
        return publicContent;
    }

    public void setPublicContent(String publicContent) {
        this.publicContent = publicContent == null ? null : publicContent.trim();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (!(that instanceof PublicNotice)) {
            return false;
        }
        PublicNotice other = (PublicNotice) that;
        return this.getPublicId() == null ? other == null : this.getPublicId().equals(other.getPublicId())
            && this.getIssueId() == null ? other == null : this.getIssueId().equals(other.getIssueId())
            && this.getIssueName() == null ? other == null : this.getIssueName().equals(other.getIssueName())
            && this.getIssueTime() == null ? other == null : this.getIssueTime().equals(other.getIssueTime())
            && this.getIssueObject() == null ? other == null : this.getIssueObject().equals(other.getIssueObject())
            && this.getIssueStatus() == null ? other == null : this.getIssueStatus().equals(other.getIssueStatus())
            && this.getIssueRange() == null ? other == null : this.getIssueRange().equals(other.getIssueRange())
            && this.getPublicContent() == null ? other == null : this.getPublicContent().equals(other.getPublicContent());
    }

    @Override
    public int hashCode() {
        int hash = 23;
        if (getPublicId() != null) {
            hash *= getPublicId().hashCode();
        }
        if (getIssueId() != null) {
            hash *= getIssueId().hashCode();
        }
        if (getIssueName() != null) {
            hash *= getIssueName().hashCode();
        }
        if (getIssueTime() != null) {
            hash *= getIssueTime().hashCode();
        }
        if (getIssueObject() != null) {
            hash *= getIssueObject().hashCode();
        }
        if (getIssueStatus() != null) {
            hash *= getIssueStatus().hashCode();
        }
        if (getIssueRange() != null) {
            hash *= getIssueRange().hashCode();
        }
        if (getPublicContent() != null) {
            hash *= getPublicContent().hashCode();
        }
        return hash;
    }
}